<?php

// Tao mot mang

$arrDB = array();

$arrDB['DB_HOST'] = 'localhost';

$arrDB['DB_USER'] = 'root';

$arrDB['DB_PASS'] = '';

$arrDB['DB_NAME'] = 'tripviet';

// Khai bao the nay de sau se khoi tao trong init file


        
foreach ($arrDB as $name => $val) {
    
    define($name, $val);
}

define('HOME',1);
define('ALBUM',2);

$nCurrentLevel = HOME;
function __autoload($class)
{
    $file_name = "modules/class.".$class.".inc.php";//Dung tu Index.php de tinh cho duong dan nay
    //Kiem tra su ton tai cua file
    if(file_exists($file_name))
    {
        include_once $file_name;
    }
}

?>